import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/element.js";
import "./assets/css/global.css";
import "./assets/css/common.css";
import axios from "axios";
import jwt from "jsonwebtoken";

import dataV from "@jiaminghi/data-view";
import * as echarts from "echarts";
import "echarts-gl"
import * as Scatter3DChart from "echarts-gl";
import * as Grid3DComponent from "echarts-gl";
import * as echartsGL from "echarts-gl";

Vue.use([Scatter3DChart, Grid3DComponent, echartsGL]);
Vue.use(dataV);
import "@/utils/rem.js"; // 导入 rem.js 让加载项目时就计算 rem 值
// 配置请求的跟路径

Vue.prototype.$bus = new Vue();
Vue.prototype.$http = axios;
Vue.prototype.$jwt = jwt;

Vue.config.productionTip = false;

Vue.prototype.$echarts = echarts;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
